Blender Documentation Volume II - Reference Guide: Last modified March 29 2004 S68 | ||
---|---|---|
<<< Previous | Python API Reference | Next >>> |
This module provides control over Lamp Data objects in Blender.
Example:
from Blender import Lamp l = Lamp.New('Spot') # create new 'Spot' lamp data l.setMode('square', 'shadow') # set these two lamp mode flags ob = Object.New('Lamp') # create new lamp object ob.link(l) # link lamp obj with lamp data |
Function Summary | ||
Blender Lamp or a list of Blender Lamps | Get(name) Get the Lamp Data object(s) from Blender. | |
Blender Lamp | New(type, name) Create a new Lamp Data object. |
Get(name=None) Get the Lamp Data object(s) from Blender.
|
<<< Previous | Home | Next >>> |
Module Lamp | Up | Class Lamp |